<?php

/*
|--------------------------------------------------------------------------
| Admin Routes
|--------------------------------------------------------------------------
|
| This file is where you may override any of the routes that are included
| with Voyager.
|
*/

Route::group(['as' => 'goods.','prefix'=>'admin'], function () {
    event('admin.routing', app('router'));

    $namespacePrefix = '\\App\\Admin\\Controllers\\Goods';

    Route::group(['middleware' => ['admin.user']], function () use ($namespacePrefix) {
        // Main Admin and Logout Route
        Route::any('/goodsadduser', ['uses' => $namespacePrefix . '\GoodsUserController@goodsAdduser', 'as' => 'add']);
		Route::get('/goodsUserList', ['uses' => $namespacePrefix . '\GoodsUserController@goodsUserList', 'as' => 'list']);
		Route::post('/goodsUserDeleted', ['uses' => $namespacePrefix . '\GoodsUserController@goodsUserDeleted']);
		Route::get('/goodsuserdetails', ['uses' => $namespacePrefix . '\GoodsUserController@goodsuserdetails']);
		Route::any('/goodsUserUpdates', ['uses' => $namespacePrefix . '\GoodsUserController@goodsUserUpdates','as' => 'updates']);

    });
    

});
